<?php 
    $key = md5('lili+123456');
    echo $key , '<br>';
    echo $str = base64_encode('lili+'.$key) , '<br>';
    define('TIME', 'asd34');
    $time = time();
    $md5_time = md5(TIME.$time);
    //echo base64_decode($str);
    $content = 'http://localhost/php/smtp_mail/lose_pwd.php?p='.$str.'&code='.$md5_time.'&time='.$time;
    $content = "<a href=\"$content\">$content</a>";
    //echo $content;exit;
    require_once("./functions.php");
    $flag = sendMail('ec06@eceu.org','找回密码',$content.'请点击此链接以重置密码，此链接只有15分钟有效期');
    if($flag){
        echo "发送邮件成功！";
    }else{
        echo "发送邮件失败！";
    }
    
 ?>